package vo;

import java.util.HashSet;
import java.util.Set;

/**
 * Resource entity. @author MyEclipse Persistence Tools
 */

public class Resource implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String permission;
	private String available;
	private Set resourceRoles = new HashSet(0);

	// Constructors

	/** default constructor */
	public Resource() {
	}

	/** minimal constructor */
	public Resource(String name, String permission, String available) {
		this.name = name;
		this.permission = permission;
		this.available = available;
	}

	/** full constructor */
	public Resource(String name, String permission, String available,
			Set resourceRoles) {
		this.name = name;
		this.permission = permission;
		this.available = available;
		this.resourceRoles = resourceRoles;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPermission() {
		return this.permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getAvailable() {
		return this.available;
	}

	public void setAvailable(String available) {
		this.available = available;
	}

	public Set getResourceRoles() {
		return this.resourceRoles;
	}

	public void setResourceRoles(Set resourceRoles) {
		this.resourceRoles = resourceRoles;
	}

}